package work728.work5;

public class Duck extends Animal {
  public Duck() {
  }

  public Duck(String name, int legNum) {
    super(name, legNum);
  }

  @Override
  public void shout() {
    System.out.println(super.getName()+"\t\t"+super.getLegNum()+"\t\t\t嘎嘎叫..........");
  }
}
